package com.yxc.elasticsearchdemo;

import io.netty.util.internal.StringUtil;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.action.search.*;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.common.unit.TimeValue;
import org.elasticsearch.index.query.RangeQueryBuilder;
import org.elasticsearch.search.builder.SearchSourceBuilder;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.IOException;

/**
 * 从es当中下载日志
 *
 * @author: YXC
 * @time: 2022/10/24 10:48
 **/
@SpringBootTest(args = {"--springboot.profile.active=zz"})
public class DownloadFromElasticsearch {

    @Autowired
    private RestHighLevelClient client;


}
